package com.csair.irp.job.file.parser.manual;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

/**
 * 手动文件模板
 *
 * @author huangjun
 * @since 2017-06-03
 */
@TableName("t_gatewaybank_param")
@Data
@ToString
@EqualsAndHashCode(callSuper = false)
public class ManualTemplatePO extends Model<ManualTemplatePO> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("data_resource_type")
    private String dataResourceType;
    @TableField("data_file_class")
    private String dataFileClass;
    @TableField("gateway_type")
    private String gatewayType;
    @TableField("colnum_names")
    private String colnumNames;
    @TableField("colnum_index")
    private Integer colnumIndex;
    @TableField("file_type")
    private String fileType;
    //isTrue=1 校验，0不作校验
    @TableField("is_true")
    private Integer isTrue;
    @TableField(exist = false)
    private String bankName;
    @TableField(exist = false)
    private String bankCode;
    @TableField(exist = false)
    private String remarks;
    @TableField(exist = false)
    private String status;
    @TableField(exist = false)
    private Integer bankId;

    private String beanId;

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
